<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>开源软件列表 - 文件共享平台</title>
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.10.0/font/bootstrap-icons.css">
    <style>
        :root {
            --primary: #4361ee;
            --primary-dark: #3a0ca3;
            --secondary: #6a5af9;
            --light: #f8f9fc;
            --dark: #212529;
            --gray: #6c757d;
        }
        
        body {
            background-color: #f5f7fb;
            color: #333;
            font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
        }
        
        .header {
            background: linear-gradient(135deg, var(--primary), var(--secondary));
            color: white;
            padding: 40px 0;
            margin-bottom: 30px;
        }
        
        .card {
            border-radius: 12px;
            border: none;
            box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
            transition: all 0.3s ease;
            height: 100%;
        }
        
        .card:hover {
            transform: translateY(-5px);
            box-shadow: 0 12px 20px rgba(0, 0, 0, 0.15);
        }
        
        .card-header {
            background-color: white;
            border-bottom: 1px solid rgba(0, 0, 0, 0.05);
            font-weight: 600;
            padding: 20px;
            border-radius: 12px 12px 0 0 !important;
        }
        
        .card-body {
            padding: 25px;
        }
        
        .license-badge {
            display: inline-block;
            padding: 5px 12px;
            border-radius: 20px;
            font-size: 0.85rem;
            font-weight: 500;
        }
        
        .license-mit {
            background-color: rgba(40, 167, 69, 0.15);
            color: #28a745;
        }
        
        .license-apache {
            background-color: rgba(23, 162, 184, 0.15);
            color: #17a2b8;
        }
        
        .license-bsd {
            background-color: rgba(255, 193, 7, 0.15);
            color: #ffc107;
        }
        
        .license-gpl {
            background-color: rgba(220, 53, 69, 0.15);
            color: #dc3545;
        }
        
        .filter-buttons {
            margin-bottom: 30px;
        }
        
        .filter-btn {
            margin: 5px;
            border-radius: 30px;
            padding: 8px 20px;
            font-weight: 500;
            transition: all 0.3s;
        }
        
        .filter-btn.active, .filter-btn:hover {
            background: var(--primary);
            color: white;
        }
        
        .project-icon {
            width: 60px;
            height: 60px;
            background: linear-gradient(135deg, var(--primary), var(--secondary));
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-bottom: 20px;
            color: white;
            font-size: 28px;
        }
        
        .project-link {
            color: var(--primary);
            text-decoration: none;
            font-weight: 500;
            display: inline-flex;
            align-items: center;
        }
        
        .project-link:hover {
            color: var(--primary-dark);
            text-decoration: underline;
        }
        
        .footer {
            background-color: var(--dark);
            color: rgba(255, 255, 255, 0.7);
            padding: 40px 0;
            margin-top: 60px;
        }
        
        .footer a {
            color: rgba(255, 255, 255, 0.7);
            text-decoration: none;
        }
        
        .footer a:hover {
            color: white;
        }
        
        .stat-card {
            background: white;
            border-radius: 12px;
            padding: 25px;
            text-align: center;
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
        }
        
        .stat-number {
            font-size: 2.5rem;
            font-weight: 700;
            color: var(--primary);
            margin: 10px 0;
        }
        
        .stat-label {
            color: var(--gray);
            font-size: 1rem;
        }
    </style>
</head>
<body>
    <!-- 头部区域 -->
    <header class="header">
        <div class="container">
            <div class="row align-items-center">
                <div class="col-md-8">
                    <h1><i class="bi bi-boxes"></i> 开源软件列表</h1>
                    <p class="lead">文件共享平台使用的开源组件及许可证信息</p>
                </div>
                <div class="col-md-4 text-md-end">
                    <a href="/" class="btn btn-light btn-lg">
                        <i class="bi bi-arrow-left me-2"></i> 返回主页
                    </a>
                </div>
            </div>
        </div>
    </header>

    <!-- 统计信息 -->
    <section class="container mb-5">
        <div class="row">
            <div class="col-md-4 mb-4">
                <div class="stat-card">
                    <i class="bi bi-github" style="font-size: 2rem; color: var(--primary);"></i>
                    <div class="stat-number">6</div>
                    <div class="stat-label">使用的开源项目</div>
                </div>
            </div>
            <div class="col-md-4 mb-4">
                <div class="stat-card">
                    <i class="bi bi-journal-code" style="font-size: 2rem; color: var(--primary);"></i>
                    <div class="stat-number">2</div>
                    <div class="stat-label">许可证类型</div>
                </div>
            </div>
            <div class="col-md-4 mb-4">
                <div class="stat-card">
                    <i class="bi bi-code-slash" style="font-size: 2rem; color: var(--primary);"></i>
                    <div class="stat-number">3000+</div>
                    <div class="stat-label">代码行数</div>
                </div>
            </div>
        </div>
    </section>

    <!-- 过滤选项 -->
    <section class="container filter-buttons">
        <div class="d-flex flex-wrap justify-content-center">
            <button class="btn btn-outline-primary filter-btn active" data-filter="all">全部</button>
            <button class="btn btn-outline-primary filter-btn" data-filter="web">Web框架</button>
            <button class="btn btn-outline-primary filter-btn" data-filter="ui">UI组件</button>
            <button class="btn btn-outline-primary filter-btn" data-filter="util">实用工具</button>
            <button class="btn btn-outline-primary filter-btn" data-filter="net">网络工具</button>
        </div>
    </section>

    <!-- 开源项目列表 -->
    <section class="container mb-5">
        <div class="row g-4">
            <!-- Flask -->
            <div class="col-lg-4 col-md-6" data-category="web">
                <div class="card">
                    <div class="card-body">
                        <div class="project-icon">
                            <i class="bi bi-flower1"></i>
                        </div>
                        <h3 class="card-title">Flask</h3>
                        <p class="text-muted">轻量级Python Web框架,提供核心服务功能</p>
                        <p><span class="license-badge license-bsd">BSD许可证</span></p>
                        <p class="card-text">Flask是一个使用Python编写的轻量级Web应用框架.基于Werkzeug WSGI工具箱和Jinja2模板引擎.</p>
                        <a href="https://flask.palletsprojects.com/" target="_blank" class="project-link">
                            项目官网 <i class="bi bi-box-arrow-up-right ms-2"></i>
                        </a>
                    </div>
                </div>
            </div>
            
            <!-- Bootstrap -->
            <div class="col-lg-4 col-md-6" data-category="ui">
                <div class="card">
                    <div class="card-body">
                        <div class="project-icon">
                            <i class="bi bi-layout-wtf"></i>
                        </div>
                        <h3 class="card-title">Bootstrap</h3>
                        <p class="text-muted">最流行的前端框架,用于构建响应式网站</p>
                        <p><span class="license-badge license-mit">MIT许可证</span></p>
                        <p class="card-text">Bootstrap是一套用于HTML、CSS和JS开发的开源工具集.提供响应式网格系统、组件和实用工具.</p>
                        <a href="https://getbootstrap.com/" target="_blank" class="project-link">
                            项目官网 <i class="bi bi-box-arrow-up-right ms-2"></i>
                        </a>
                    </div>
                </div>
            </div>
            
            <!-- Font Awesome -->
            <div class="col-lg-4 col-md-6" data-category="ui">
                <div class="card">
                    <div class="card-body">
                        <div class="project-icon">
                            <i class="bi bi-fonts"></i>
                        </div>
                        <h3 class="card-title">Font Awesome</h3>
                        <p class="text-muted">矢量图标和社交标志的完美解决方案</p>
                        <p><span class="license-badge license-mit">MIT许可证</span></p>
                        <p class="card-text">Font Awesome为您提供可缩放矢量图标,可以使用CSS控制大小、颜色、阴影等属性.</p>
                        <a href="https://fontawesome.com/" target="_blank" class="project-link">
                            项目官网 <i class="bi bi-box-arrow-up-right ms-2"></i>
                        </a>
                    </div>
                </div>
            </div>
            
            <!-- jQuery -->
            <div class="col-lg-4 col-md-6" data-category="web">
                <div class="card">
                    <div class="card-body">
                        <div class="project-icon">
                            <i class="bi bi-code-square"></i>
                        </div>
                        <h3 class="card-title">jQuery</h3>
                        <p class="text-muted">快速、小巧且功能丰富的JavaScript库</p>
                        <p><span class="license-badge license-mit">MIT许可证</span></p>
                        <p class="card-text">jQuery简化了HTML文档遍历、事件处理、动画和Ajax交互,使Web开发更快速.</p>
                        <a href="https://jquery.com/" target="_blank" class="project-link">
                            项目官网 <i class="bi bi-box-arrow-up-right ms-2"></i>
                        </a>
                    </div>
                </div>
            </div>
            
            <!-- psutil -->
            <div class="col-lg-4 col-md-6" data-category="util">
                <div class="card">
                    <div class="card-body">
                        <div class="project-icon">
                            <i class="bi bi-cpu"></i>
                        </div>
                        <h3 class="card-title">psutil</h3>
                        <p class="text-muted">跨平台进程和系统监控库</p>
                        <p><span class="license-badge license-bsd">BSD许可证</span></p>
                        <p class="card-text">psutil是一个跨平台库,用于检索Python中运行的进程和系统利用率的信息.</p>
                        <a href="https://github.com/giampaolo/psutil" target="_blank" class="project-link">
                            项目官网 <i class="bi bi-box-arrow-up-right ms-2"></i>
                        </a>
                    </div>
                </div>
            </div>
            
            <!-- netifaces -->
            <div class="col-lg-4 col-md-6" data-category="net">
                <div class="card">
                    <div class="card-body">
                        <div class="project-icon">
                            <i class="bi bi-wifi"></i>
                        </div>
                        <h3 class="card-title">netifaces</h3>
                        <p class="text-muted">便携式网络接口信息获取库</p>
                        <p><span class="license-badge license-mit">MIT许可证</span></p>
                        <p class="card-text">netifaces是一个小型便携式模块,用于访问网络接口信息.</p>
                        <a href="https://github.com/al45tair/netifaces" target="_blank" class="project-link">
                            项目官网 <i class="bi bi-box-arrow-up-right ms-2"></i>
                        </a>
                    </div>
                </div>
            </div>
        </div>
    </section>

    <!-- 许可证信息 -->
    <section class="container mb-5">
        <div class="card">
            <div class="card-header bg-white">
                <h3 class="mb-0"><i class="bi bi-journal-check me-2"></i> 许可证说明</h3>
            </div>
            <div class="card-body">
                <div class="row">
                    <div class="col-md-6 mb-4">
                        <h4><span class="license-badge license-mit me-2"></span> MIT许可证</h4>
                        <p class="text-muted">非常宽松的许可证,允许商业使用、修改、分发和私人使用.唯一的要求是保留版权和许可声明.</p>
                    </div>
                    <div class="col-md-6 mb-4">
                        <h4><span class="license-badge license-bsd me-2"></span> BSD许可证</h4>
                        <p class="text-muted">与MIT许可证类似,但有一些额外的限制.BSD许可证通常要求在所有副本中保留版权声明.</p>
                    </div>
                    <div class="col-md-6 mb-4">
                        <h4><span class="license-badge license-apache me-2"></span> Apache许可证</h4>
                        <p class="text-muted">允许自由使用、修改和分发软件,但要求保留版权声明和免责声明.提供专利许可.</p>
                    </div>
                    <div class="col-md-6 mb-4">
                        <h4><span class="license-badge license-gpl me-2"></span> GPL许可证</h4>
                        <p class="text-muted">要求任何使用GPL许可代码的软件也必须以GPL许可证发布源代码.确保软件保持开源.</p>
                    </div>
                </div>
            </div>
        </div>
    </section>

    <!-- 页脚 -->
    <footer class="footer">
        <div class="container">
            <div class="row">
                <div class="col-md-4 mb-4">
                    <h5>文件共享平台</h5>
                    <p>一个基于开源技术的安全文件共享解决方案.</p>
                    <p>版本: 1.2.0</p>
                </div>
                <div class="col-md-4 mb-4">
                    <h5>相关链接</h5>
                    <ul class="list-unstyled">
                        <li><a href="/"><i class="bi bi-house-door me-2"></i> 主页</a></li>
                        <li><a href="/admin"><i class="bi bi-shield-lock me-2"></i> 管理员面板</a></li>
                        <li><a href="https://github.com/508364/" target="_blank"><i class="bi bi-github me-2"></i> GitHub仓库</a></li>
                    </ul>
                </div>
                <div class="col-md-4">
                    <h5>开源许可</h5>
                    <p>本项目遵循MIT开源许可证.</p>
                    <p>© 2025 作者508364</p>
                </div>
            </div>
            <hr class="mt-4 mb-4" style="background-color: rgba(255,255,255,0.1);">
            <div class="text-center">
                <p class="mb-0">感谢所有开源项目的贡献者,让技术世界更加美好</p>
            </div>
        </div>
    </footer>

    <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js"></script>
    <script>
        // 过滤功能
        document.addEventListener('DOMContentLoaded', function() {
            const filterButtons = document.querySelectorAll('.filter-btn');
            const projects = document.querySelectorAll('.col-lg-4');
            
            filterButtons.forEach(button => {
                button.addEventListener('click', function() {
                    // 更新按钮状态
                    filterButtons.forEach(btn => btn.classList.remove('active'));
                    this.classList.add('active');
                    
                    const filter = this.getAttribute('data-filter');
                    
                    // 过滤项目
                    projects.forEach(project => {
                        if (filter === 'all' || project.getAttribute('data-category') === filter) {
                            project.style.display = 'block';
                        } else {
                            project.style.display = 'none';
                        }
                    });
                });
            });
        });
    </script>
</body>
</html>